import java.io.File;
import java.io.FileInputStream;
import java.io.FileReader;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;

public class ReadAddress {
	public ArrayList ReadInput(ArrayList<ArrayList<Integer>> testArray, String fileAddress) {
		File f = new File(fileAddress);
		try{
			BufferedReader br = new BufferedReader(new FileReader(f));
			Scanner scan = null;;
			String input = br.readLine();	
			int index = 0;
			while (input != null) {
				ArrayList<Integer> i = new ArrayList<Integer>();
				scan = new Scanner(input);
				int inputNumber = scan.nextInt();
				i.add(index);
				i.add(inputNumber);
				testArray.add(i);
				input = br.readLine();
				index++;
			}
			br.close();
		}
		catch (IOException e) {
			System.out.println("Unable to find File");
		}
		return testArray;
	}
}
